﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.BoM
{
    /// <summary>
    /// 物料清单信息
    /// </summary>
    [SugarTable("BoMInform")]
    public class BoMInform:BaseEntity
    {
        /// <summary>
        /// 物料清单ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        public int BoMInformId { get; set; }
        /// <summary>
        /// 物料清单编码
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? BoMInformCode { get; set; }
        /// <summary>
        /// 物料清单版本
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? BoMInformVersion { get; set; }
        /// <summary>
        /// 物料管理ID
        /// </summary>
        public int MaterialId { get; set; }
        /// <summary>
        /// 物料清单描述
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? BoMInformDec { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 部门ID(序号)
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int IsStatus { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
        public int IsDel { get; set; }
        
    }
}
